using SqlSugar;

/*
 * @author : xkdong@163.com
 * @date : 2024-3-15
 * @desc : 预约就诊记录表
 */
namespace YOUYOU.Models.Entities.DBModels
{
    /// <summary>
    /// 预约就诊记录表
    /// </summary>
    [SugarTable("appoint_visitdoctor", TableDescription = "预约就诊记录表")]
    public class AppointVisitdoctor
    {
        /// <summary>
        /// 预约就诊ID（自增）
        /// </summary>
        [SugarColumn(ColumnName = "ID" ,IsIdentity = true, IsPrimaryKey = true)]
        public int ID{ get; set; }
        
        /// <summary>
        /// 病人ID（关联病人建档表）
        /// </summary>
        [SugarColumn(ColumnName = "PatientID")]
        public string? PatientID{ get; set; }
        
        /// <summary>
        /// 预约日期和时间
        /// </summary>
        [SugarColumn(ColumnName = "AppointmentDate")]
        public DateTime? AppointmentDate{ get; set; }
        
        /// <summary>
        /// 科室ID(关联科室表)
        /// </summary>
        [SugarColumn(ColumnName = "DeptID")]
        public int? DeptID{ get; set; }
        
        /// <summary>
        /// 就诊原因（简述就诊的原因或症状）
        /// </summary>
        [SugarColumn(ColumnName = "VisitReason")]
        public string? VisitReason{ get; set; }
        
        /// <summary>
        /// 就诊医生ID（关联人员信息表）
        /// </summary>
        [SugarColumn(ColumnName = "DoctorID")]
        public int? DoctorID{ get; set; }
        
        /// <summary>
        /// 预约状态(1.已完成，2.未完成)
        /// </summary>
        [SugarColumn(ColumnName = "Status")]
        public int? Status{ get; set; }
        
        /// <summary>
        /// 下单时间(记录预约创建的时间)
        /// </summary>
        [SugarColumn(ColumnName = "CreationDate")]
        public DateTime? CreationDate{ get; set; }
        
        /// <summary>
        /// 备注
        /// </summary>
        [SugarColumn(ColumnName = "Description")]
        public string? Description{ get; set; }
        
    }
}